package com.bw.device.net

import com.bw.base.constants.ApiConst
import com.bw.device.entity.DeviceEntity
import com.bw.http.utils.Res
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface ApiService {
    @GET(ApiConst.URL_GET_DEVICE)
    suspend fun getDevice():Res<List<DeviceEntity>>
    @POST(ApiConst.URL_POST_DEVICE)
    suspend fun addDeceive(@Body deviceEntity: DeviceEntity):Res<DeviceEntity>
    @DELETE(ApiConst.URL_DELETE_DEVICE)
    suspend fun DelDeceive(@Path("id")id:Int):Res<Boolean>


}